<!DOCTYPE html>
<!--
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
-->
<html>
    <head>
        <title>TODO supply a title</title>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <link rel="shortcut icon" href="favicon.ico"> <link href="./src/css/bootstrap.min.css?v=3.3.6" rel="stylesheet">
        <link href="./src/css/font-awesome.css?v=4.4.0" rel="stylesheet">
        <link href="./src/css/plugins/iCheck/custom.css" rel="stylesheet">
        <link href="./src/css/animate.css" rel="stylesheet">
        <link href="./src/css/style.css?v=4.1.0" rel="stylesheet">
        <link href="./src/css/plugins/sweetalert/sweetalert.css" rel="stylesheet">
        <link href="./src/css/change.css" rel="stylesheet">
        <script type="text/javascript" src="src/js/jquery.min.js"></script>
        <script src="./src/js/jquery.min.js?v=2.1.4"></script>
        <script src="./src/js/bootstrap.min.js?v=3.3.6"></script>
        <script src="./src/js/content.js?v=1.0.0"></script>
        <script src="./src/js/plugins/sweetalert/sweetalert.min.js"></script>
        <script src="./src/js/My97DatePicker/WdatePicker.js"></script>
        <script>
            $(function() {
                $('#custom_id').change(function() {
                    $('#custom_contact_id option').remove();
                    $('#custom_site_id option').remove();
                    $('#custom_site_contact_id option').remove();
                    $('#delivery_point_id option').prop('selected', false);
                    var tmp_value = $(this).val();
                    if (tmp_value > 0) {
                        $.getJSON('./?m=ajax&a=custominfo&id=' + tmp_value, function(data) {
                            $.each(data.contact, function(k, v) {
                                var item = '<option value="' + v.id + '">' + v.name + '</option>';
                                $('#custom_contact_id').append(item);
                            });

                            var item = '<option city="0" value="0">请选择</option>';
                            $('#custom_site_id').append(item);
                            $.each(data.site, function(k, v) {
                                var item = '<option city="' + v.city + '" value="' + v.id + '">' + v.name + '</option>';
                                $('#custom_site_id').append(item);
                            });
                        });
                    }
                });

                $('#custom_site_id').change(function() {
                    $('#custom_site_contact_id option').remove();
                    var tmp_value = $(this).val();
                    var tmp_city_value = $(this).find('option:selected').attr('city');
                    if (tmp_value > 0) {
                        $('#delivery_point_id option').each(function() {
                            if (tmp_city_value == $(this).val()) {
                                $(this).prop('selected', true);
                            }
                        });
                        $.getJSON('./?m=ajax&a=customsiteinfo&id=' + tmp_value, function(data) {
                            $.each(data, function(k, v) {
                                var item = '<option value="' + v.id + '">' + v.name + '</option>';
                                $('#custom_site_contact_id').append(item);
                            });
                        });
                    }
                });

                $('#car_id').change(function() {
                    $('#driver_id option').eq(0).prop('selected', true);
                    var tmp_driver = $(this).find('option:selected').attr('driver_id');
                    $('#driver_id option').each(function() {
                        if (tmp_driver == $(this).val()) {
                            $(this).prop('selected', true);
                            var tmp_phone = $(this).attr('phone');
                            $('#driver_phone').val(tmp_phone);
                        }
                    });

                    $('#car_team_id option').eq(0).prop('selected', true);
                    var tmp_team = $(this).find('option:selected').attr('team_id');
                    $('#car_team_id option').each(function() {
                        if (tmp_team == $(this).val()) {
                            $(this).prop('selected', true);
                        }
                    });
                });

                $('#driver_id').change(function() {
                    var tmp_phone = $(this).find('option:selected').attr('phone');
                    $('#driver_phone').val(tmp_phone);
                });

                $('#ship_name').blur(function() {
                    var tmp_value = $(this).val();
                    $.getJSON('./?m=ajax&a=shipname&name=' + tmp_value, function(data) {
                        //alert(data);
                    });
                });

                $("#submit").click(function() {
                    var custom_id = $("#custom_id").val();
                    var custom_contact_id = $("#custom_contact_id").val();
                    var custom_code = $("#custom_code").val();
                    var service_mode_id = $("#service_mode_id").val();
                    var custom_site_id = $("#custom_site_id").val();
                    var custom_site_contact_id = $("#custom_site_contact_id").val();
                    var contact_phone = $("#custom_site_contact_phone").val();
                    var goods_city = $("#delivery_point_id").val();
                    var goods_address = $("#delivery_point_address").val();
                    var danger_level = $("#danger_level").val();
                    var nation_code = $("#nation_code").val();
                    var lading_code = $("#lading_code").val();
                    var ship_name = $("#ship_name").val();
                    var ship_line = $("#ship_line").val();
                    var ship_company = $("#ship_company").val();
                    var transfer_time = $("#transfer_time").val();
                    var ship_date = $("#ship_date").val();
                    var goods_port = $("#goods_port").val();
                    var delivery = $("#delivery").val();
                    var start_time = $("#start_time").val();
                    var end_time = $("#end_time").val();
                    var send_yard_id = $("#send_yard_id").val();
                    var back_yard_id = $("#back_yard_id").val();
                    var port_name = $("#port_name").val();
                    var in_time = $("#in_time").val();
                    var out_code = $("#out_code").val();
                    var inner_code = $("#inner_code").val();

                    var is_double = $("#is_double").val();
                    var box_id = $("#box_id").val();
                    var box_code = $("#box_code").val();
                    var seal_code = $("#seal_code").val();
                    var dobox_date = $("#dobox_date").val();
                    var dobox_time = $("#dobox_time").val();
                    var goods_count = $("#goods_count").val();
                    var goods_weight = $("#goods_weight").val();
                    var goods_size = $("#goods_size").val();
                    var goods_name = $("#goods_name").val();
                    var car_id = $("#car_id").val();
                    var driver_id = $("#driver_id").val();
                    var car_team_id = $("#car_team_id").val();
                    var driver_phone = $("#driver_phone").val();
                    var delivery_id = $("#delivery_id").val();
                    var arrive_time = $("#arrive_time").val();
                    var kilometer = $("#kilometer").val();
                    var weight = $("#weight").val();
                    var remark_box = $("#remark_box").val();
                    var remark_big = $("#remark_big").val();

                    var money_1_1 = $("#money_1_1").val();
                    var money_1_2 = $("#money_1_2").val();
                    var money_1_3 = $("#money_1_3").val();
                    var money_1_4 = $("#money_1_4").val();
                    var money_1_5 = $("#money_1_5").val();
                    var money_1_6 = $("#money_1_6").val();
                    var money_1_7 = $("#money_1_7").val();
                    var money_1_8 = $("#money_1_8").val();
                    var money_1_9 = $("#money_1_9").val();
                    var money_1_10 = $("#money_1_10").val();
                    var money_1_11 = $("#money_1_11").val();
                    var money_1_12 = $("#money_1_12").val();
                    var money_1_13 = $("#money_1_13").val();
                    var money_1_14 = $("#money_1_14").val();
                    var money_1_15 = $("#money_1_15").val();
                    var remark_1 = $("#remark_1").val();

                    var money_2_1 = $("#money_2_1").val();
                    var money_2_2 = $("#money_2_2").val();
                    var money_2_3 = $("#money_2_3").val();
                    var money_2_4 = $("#money_2_4").val();
                    var money_2_5 = $("#money_2_5").val();
                    var money_2_6 = $("#money_2_6").val();
                    var money_2_7 = $("#money_2_7").val();
                    var money_2_8 = $("#money_2_8").val();
                    var money_2_9 = $("#money_2_9").val();
                    var money_2_10 = $("#money_2_10").val();
                    var money_2_11 = $("#money_2_11").val();
                    var money_2_12 = $("#money_2_12").val();
                    var money_2_13 = $("#money_2_13").val();
                    var money_2_14 = $("#money_2_14").val();
                    var money_2_15 = $("#money_2_15").val();
                    var remark_2 = $("#remark_2").val();

                    var money_3_1 = $("#money_3_1").val();
                    var money_3_2 = $("#money_3_2").val();
                    var money_3_3 = $("#money_3_3").val();
                    var money_3_4 = $("#money_3_4").val();
                    var money_3_5 = $("#money_3_5").val();
                    var money_3_6 = $("#money_3_6").val();
                    var money_3_7 = $("#money_3_7").val();
                    var money_3_8 = $("#money_3_8").val();
                    var money_3_9 = $("#money_3_9").val();
                    var money_3_10 = $("#money_3_10").val();
                    var money_3_11 = $("#money_3_11").val();
                    var money_3_12 = $("#money_3_12").val();
                    var money_3_13 = $("#money_3_13").val();
                    var money_3_14 = $("#money_3_14").val();
                    var money_3_15 = $("#money_3_15").val();
                    var remark_3 = $("#remark_3").val();

                    var detail_count = $("#detail_count").val();

                    if (confirm("确认提交")) {
                        $.post("./?m=order&a=dodetail", {
                            custom_id: custom_id,
                            custom_contact_id: custom_contact_id,
                            custom_code: custom_code,
                            service_mode_id: service_mode_id,
                            custom_site_id: custom_site_id,
                            custom_site_contact_id: custom_site_contact_id,
                            contact_phone: contact_phone,
                            goods_city: goods_city,
                            goods_address: goods_address,
                            danger_level: danger_level,
                            nation_code: nation_code,
                            lading_code: lading_code,
                            ship_name: ship_name,
                            ship_line: ship_line,
                            ship_company: ship_company,
                            transfer_time: transfer_time,
                            ship_date: ship_date,
                            goods_port: goods_port,
                            delivery: delivery,
                            start_time: start_time,
                            end_time: end_time,
                            send_yard_id: send_yard_id,
                            back_yard_id: back_yard_id,
                            port_name: port_name,
                            in_time: in_time,
                            out_code: out_code,
                            inner_code: inner_code,
                            is_double: is_double,
                            box_id: box_id,
                            box_code: box_code,
                            seal_code: seal_code,
                            dobox_date: dobox_date,
                            dobox_time: dobox_time,
                            goods_count: goods_count,
                            goods_weight: goods_weight,
                            goods_size: goods_size,
                            goods_name: goods_name,
                            car_id: car_id,
                            driver_id: driver_id,
                            car_team_id: car_team_id,
                            driver_phone: driver_phone,
                            delivery_id: delivery_id,
                            arrive_time: arrive_time,
                            kilometer: kilometer,
                            weight: weight,
                            remark_box: remark_box,
                            remark_big: remark_big,
                            money_1_1: money_1_1,
                            money_1_2: money_1_2,
                            money_1_3: money_1_3,
                            money_1_4: money_1_4,
                            money_1_5: money_1_5,
                            money_1_6: money_1_6,
                            money_1_7: money_1_7,
                            money_1_8: money_1_8,
                            money_1_9: money_1_9,
                            money_1_10: money_1_10,
                            money_1_11: money_1_11,
                            money_1_12: money_1_12,
                            money_1_13: money_1_13,
                            money_1_14: money_1_14,
                            money_1_15: money_1_15,
                            remark_1: remark_1,
                            money_2_1: money_2_1,
                            money_2_2: money_2_2,
                            money_2_3: money_2_3,
                            money_2_4: money_2_4,
                            money_2_5: money_2_5,
                            money_2_6: money_2_6,
                            money_2_7: money_2_7,
                            money_2_8: money_2_8,
                            money_2_9: money_2_9,
                            money_2_10: money_2_10,
                            money_2_11: money_2_11,
                            money_2_12: money_2_12,
                            money_2_13: money_2_13,
                            money_2_14: money_2_14,
                            money_2_15: money_2_15,
                            remark_2: remark_2,
                            money_3_1: money_3_1,
                            money_3_2: money_3_2,
                            money_3_3: money_3_3,
                            money_3_4: money_3_4,
                            money_3_5: money_3_5,
                            money_3_6: money_3_6,
                            money_3_7: money_3_7,
                            money_3_8: money_3_8,
                            money_3_9: money_3_9,
                            money_3_10: money_3_10,
                            money_3_11: money_3_11,
                            money_3_12: money_3_12,
                            money_3_13: money_3_13,
                            money_3_14: money_3_14,
                            money_3_15: money_3_15,
                            remark_3: remark_3,
                            detail_count: detail_count,
                        },
                                function(result) {
                                    if (result > 0) {
                                        swal({
                                            title: "提交数据成功",
                                            text: "THIS IS OK。"
                                        }, function() {
                                            location.href = "./?m=order&a=list";
                                        })
                                    } else {
                                        swal({
                                            title: "提交数据失败",
                                            text: "THIS IS ERROR。"
                                        }, function() {
                                            location.href = "./?m=order&a=list";
                                        });
                                    }
                                    ;
                                });
                    }


                });

                $("#lading_code").blur(function() {
                    var lading_code = $("#lading_code").val();
                    $.post("./?m=ajax&a=lading_code", {
                        lading_code: lading_code,
                    },
                            function(result) {
                                data = eval("(" + result + ")");
                                $("#ship_name").val(data['vsl']);
                                $("#ship_line").val(data['voy']);
                                $("#start_time").val(data['dopen']);
                                $("#end_time").val(data['dclose']);
//                        $("#port_name option[]").prop('selected',true);
                                $("#in_time").val(data['eta']);
                                $("#ship_date").val(data['etd']); //船期
                                var item = "<option value=" + data['port'] + ">" + data['port'] + "</option>";
                                $("#port_name").append(item);
                            });
                });

            });
        </script>
    </head>
    <body>
        <div class="wrapper wrapper-content animated fadeInRight">
            <div class="row">
                <div class="col-sm-12">
                    <div class="ibox float-e-margins">
                        <div class="ibox-title">
                            <h5>业务信息</h5>
                        </div>
                        <div class="ibox-content">
                            <form method="get" class="form-horizontal">
                                <div class="form-group">
                                    <label class="col-sm-1 control-label">客户名称</label>
                                    <div class="col-sm-2">
                                        <select class="form-control" name="custom_id" id="custom_id">
                                            <option value="0">请选择</option>
                                            <?php
                                            foreach ($this->custom as $k => $v) {
                                                echo '<option value="' . $v['id'] . '">' . $v['name'] . '</option>';
                                            }
                                            ?>
                                        </select>
                                        <div style="position:absolute;top:8px;right:0px;color:red;">*</div>
                                    </div>

                                    <label class="col-sm-1 control-label">客户联系人</label>
                                    <div class="col-sm-2">
                                        <select class="form-control" name="custom_contact_id" id="custom_contact_id">

                                        </select>
                                    </div>

                                    <label class="col-sm-1 control-label">客户编号</label>
                                    <div class="col-sm-2">
                                        <input type="text" class="form-control" name="custom_code" id="custom_code" />
                                    </div>

                                    <label class="col-sm-1 control-label">业务类型</label>
                                    <div class="col-sm-2">
                                        <select class="form-control" name="service_mode_id" id="service_mode_id">
                                            <option value="0">请选择</option>
                                            <?php
                                            foreach ($this->serivce_model as $k => $v) {
                                                echo '<option value="' . $v['id'] . '">' . $v['servicemode'] . '</option>';
                                            }
                                            ?>
                                        </select>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="col-sm-1 control-label">门点</label>
                                    <div class="col-sm-2">
                                        <select class="form-control" name="custom_site_id" id="custom_site_id">

                                        </select>
                                    </div>

                                    <label class="col-sm-1 control-label">联系人</label>
                                    <div class="col-sm-2">
                                        <select class="form-control" name="custom_site_contact_id" id="custom_site_contact_id">

                                        </select>
                                    </div>

                                    <label class="col-sm-1 control-label">联系电话</label>
                                    <div class="col-sm-2">
                                        <input type="text" class="form-control" name="custom_site_contact_phone" id="custom_site_contact_phone" />
                                    </div>

                                    <label class="col-sm-1 control-label">装卸货地点</label>
                                    <div class="col-sm-2">
                                        <select class="form-control" name="delivery_point_id" id="delivery_point_id">
                                            <option value="0">请选择</option>
                                            <?php
                                            foreach ($this->city as $k => $v) {
                                                echo '<option value="' . $v['id'] . '">' . $v['name'] . '</option>';
                                            }
                                            ?>
                                        </select>
                                    </div>
                                </div>

                                <div class="form-group">
                                    <label class="col-sm-1 control-label">装卸货地址</label>
                                    <div class="col-sm-5">
                                        <input type="text" class="form-control" name="delivery_point_address" id="delivery_point_address" />
                                    </div>

                                    <label class="col-sm-1 control-label">危险品等级</label>
                                    <div class="col-sm-2">
                                        <input type="text" class="form-control" name="danger_level" id="danger_level" />
                                    </div>

                                    <label class="col-sm-1 control-label">联合国编号</label>
                                    <div class="col-sm-2">
                                        <input type="text" class="form-control" name="nation_code" id="nation_code" />
                                    </div>
                                </div>

                                <div class="form-group">
                                    <label class="col-sm-1 control-label">提单号</label>
                                    <div class="col-sm-2">
                                        <input type="text" class="form-control" name="lading_code" id="lading_code" />
                                    </div>

                                    <label class="col-sm-1 control-label">船名</label>
                                    <div class="col-sm-2">
                                        <input type="text" class="form-control" name="ship_name" id="ship_name" />
                                    </div>

                                    <label class="col-sm-1 control-label">航次</label>
                                    <div class="col-sm-2">
                                        <input type="text" class="form-control" name="ship_line" id="ship_line" />
                                    </div>

                                    <label class="col-sm-1 control-label">船公司</label>
                                    <div class="col-sm-2">
                                        <select class="form-control" name="ship_company" id="ship_company">

                                        </select>
                                    </div>

                                </div>

                                <div class="form-group">
                                    <label class="col-sm-1 control-label">交接单时间</label>
                                    <div class="col-sm-2 input-daterange">
                                        <input type="text" class="form-control" name="transfer_time"  onfocus="WdatePicker({skin: 'whyGreen', dateFmt: 'yyyy-MM-dd HH:mm:ss'})" id="transfer_time" />
                                    </div>


                                    <!--                                    <label class="col-sm-1 control-label">是否双拖</label>
                                                                        <div class="col-sm-2">
                                                                            <div class="checkbox">
                                                                                <label>
                                                                                    <input type="checkbox" value="1" name="is_double" id="is_double">
                                                                                </label>
                                                                            </div>
                                                                        </div>-->



                                    <label class="col-sm-1 control-label">中转港</label>
                                    <div class="col-sm-2">
                                        <input type="text" class="form-control" name="goods_port" id="goods_port" />
                                    </div>
                                    <label class="col-sm-1 control-label">交货地</label>
                                    <div class="col-sm-2">
                                        <select class="form-control" name="delivery" id="delivery">
                                            <?php
                                            foreach ($this->delivery_point as $k => $v) {
                                                echo '<option value="' . $v['id'] . '">' . $v['point'] . '</option>';
                                            }
                                            ?>
                                        </select>
                                    </div>
                                    <label class="col-sm-1 control-label">船期</label>
                                    <div class="col-sm-2">
                                        <input type="text" class="form-control" name="ship_date" id="ship_date" />
                                    </div>
                                </div>

                                <div class="form-group">


                                    <label class="col-sm-1 control-label">箱型箱量</label>
                                    <div class="col-sm-2">
                                        <select class="form-control" style="width:65%;float:left;" name="box_id" id="box_id">
                                            <?php
                                            foreach ($this->box as $k => $v) {
                                                echo '<option value="' . $v['id'] . '">' . $v['code'] . '</option>';
                                            }
                                            ?>
                                        </select>
                                        <input type="text" class="form-control" style="width:30%;float:left;" name="detail_count" id="detail_count" />
                                        <div style="position:absolute;top:8px;right:-10px;color:red;">*</div>
                                    </div>

                                    <label class="col-sm-1 control-label">箱号</label>
                                    <div class="col-sm-2">
                                        <input type="text" class="form-control" name="box_code" id="box_code" />
                                    </div>

                                    <label class="col-sm-1 control-label">封条号</label>
                                    <div class="col-sm-2">
                                        <input type="text" class="form-control" name="seal_code" id="seal_code" />
                                    </div>
                                </div>

                                <div class="form-group">
                                    <label class="col-sm-1 control-label">做箱时间</label>
                                    <div class="col-sm-3">
                                        <input type="text" class="form-control"  onfocus="WdatePicker({skin: 'whyGreen', dateFmt: 'yyyy-MM-dd'})" style="width:45%;float:left;" name="dobox_date" id="dobox_date" />
                                        <input type="text" class="form-control" style="width:30%;float:left;" onfocus="WdatePicker({skin: 'whyGreen', dateFmt: 'HH:mm:ss'})"  name="dobox_time" id="dobox_time" />
                                        <div style="position:absolute;top:8px;right:80px;color:red;">*</div>
                                    </div>
                                </div>

                                <div class="form-group">
                                    <label class="col-sm-1 control-label">件数</label>
                                    <div class="col-sm-2">
                                        <input type="text" class="form-control" name="goods_count" id="goods_count" />
                                    </div>

                                    <label class="col-sm-1 control-label">毛重</label>
                                    <div class="col-sm-2">
                                        <input type="text" class="form-control" name="goods_weight" id="goods_weight" />
                                    </div>

                                    <label class="col-sm-1 control-label">尺码</label>
                                    <div class="col-sm-2">
                                        <input type="text" class="form-control" name="goods_size" id="goods_size" />
                                    </div>

                                    <label class="col-sm-1 control-label">货名</label>
                                    <div class="col-sm-2">
                                        <input type="text" class="form-control" name="goods_name" id="goods_name" />
                                    </div>
                                </div>

                                <div class="form-group">
                                    <label class="col-sm-1 control-label">开港时间</label>
                                    <div class="col-sm-2">
                                        <input type="text" class="form-control"  onfocus="WdatePicker({skin: 'whyGreen', dateFmt: 'yyyy-MM-dd HH:mm:ss'})" name="start_time" id="start_time" />
                                    </div>

                                    <label class="col-sm-1 control-label">截港时间</label>
                                    <div class="col-sm-2">
                                        <input type="text" class="form-control"  onfocus="WdatePicker({skin: 'whyGreen', dateFmt: 'yyyy-MM-dd HH:mm:ss'})" name="end_time" id="end_time" />
                                    </div>

                                    <label class="col-sm-1 control-label">提箱堆场</label>
                                    <div class="col-sm-2">
                                        <select class="form-control" name="send_yard_id" id="send_yard_id">
                                            <?php
                                            foreach ($this->yard as $k => $v) {
                                                echo '<option value="' . $v['id'] . '">' . $v['name'] . '</option>';
                                            }
                                            ?>
                                        </select>
                                    </div>

                                    <label class="col-sm-1 control-label">还箱堆场</label>
                                    <div class="col-sm-2">
                                        <select class="form-control" name="back_yard_id" id="back_yard_id">
                                            <?php
                                            foreach ($this->yard as $k => $v) {
                                                echo '<option value="' . $v['id'] . '">' . $v['name'] . '</option>';
                                            }
                                            ?>
                                        </select>
                                    </div>
                                </div>

                                <div class="form-group">
                                    <label class="col-sm-1 control-label">港区</label>
                                    <div class="col-sm-2">
                                        <select class="form-control" name="port_name" id="port_name">
                                        </select>
                                    </div>

                                    <label class="col-sm-1 control-label">进港时间</label>
                                    <div class="col-sm-2">
                                        <input type="text" onfocus="WdatePicker({skin: 'whyGreen', dateFmt: 'yyyy-MM-dd HH:mm:ss'})" class="form-control" name="in_time" id="in_time" />
                                    </div>

                                    <label class="col-sm-1 control-label">动检编号</label>
                                    <div class="col-sm-2">
                                        <input type="text" class="form-control" name="out_code" id="out_code" />
                                    </div>

                                    <label class="col-sm-1 control-label">内部编号</label>
                                    <div class="col-sm-2">
                                        <input type="text" class="form-control" name="inner_code" id="inner_code" />
                                    </div>
                                </div>

                                <div class="form-group">
                                    <label class="col-sm-1 control-label">车牌号</label>
                                    <div class="col-sm-2">
                                        <select class="form-control" name="car_id" id="car_id">
                                            <option driver_id="0" team_id="0" value="0">请选择</option>
                                            <?php
                                            foreach ($this->car as $k => $v) {
                                                echo '<option driver_id="' . $v['driver_id'] . '" team_id="' . $v['team_id'] . '" value="' . $v['id'] . '">' . $v['name'] . '</option>';
                                            }
                                            ?>
                                        </select>
                                    </div>

                                    <label class="col-sm-1 control-label">司机</label>
                                    <div class="col-sm-2">
                                        <select class="form-control" name="driver_id" id="driver_id">
                                            <option value="0" phone="0">请选择</option>
                                            <?php
                                            foreach ($this->driver as $k => $v) {
                                                echo '<option value="' . $v['id'] . '" phone="' . $v['telephone'] . '">' . $v['name'] . '</option>';
                                            }
                                            ?>
                                        </select>
                                    </div>

                                    <label class="col-sm-1 control-label">车队</label>
                                    <div class="col-sm-2">
                                        <select class="form-control" name="car_team_id" id="car_team_id">
                                            <option value="0">请选择</option>
                                            <?php
                                            foreach ($this->carteam as $k => $v) {
                                                echo '<option value="' . $v['id'] . '">' . $v['name'] . '</option>';
                                            }
                                            ?>
                                        </select>
                                    </div>

                                    <label class="col-sm-1 control-label">司机手机号</label>
                                    <div class="col-sm-2">
                                        <input type="text" class="form-control" name="driver_phone" id="driver_phone" />
                                    </div>
                                </div>

                                <div class="form-group">
                                    <label class="col-sm-1 control-label">寄单点</label>
                                    <div class="col-sm-2">
                                        <select class="form-control" name="delivery_id" id="delivery_id">
                                            <option driver_id="0" team_id="0" value="0">请选择</option>
                                            <?php
                                            foreach ($this->delivery as $k => $v) {
                                                echo '<option value="' . $v['id'] . '">' . $v['name'] . '</option>';
                                            }
                                            ?>
                                        </select>
                                    </div>

                                    <label class="col-sm-1 control-label">到场时间</label>
                                    <div class="col-sm-2">
                                        <input type="text" class="form-control" onfocus="WdatePicker({skin: 'whyGreen', dateFmt: 'yyyy-MM-dd HH:mm:ss'})" name="arrive_time" id="arrive_time" />
                                    </div>

                                    <label class="col-sm-1 control-label">公里数</label>
                                    <div class="col-sm-2">
                                        <input type="text" class="form-control" name="kilometer" id="kilometer" />
                                    </div>
                                </div>

                                <div class="form-group">
                                    <label class="col-sm-1 control-label">皮重</label>
                                    <div class="col-sm-2">
                                        <input type="text" class="form-control" name="weight" id="weight" />
                                    </div>
                                </div>

                                <div class="form-group">
                                    <label class="col-sm-1 control-label">装箱单备注</label>
                                    <div class="col-sm-5">
                                        <textarea class="form-control" name="remark_box" id="remark_box"></textarea>
                                    </div>

                                    <label class="col-sm-1 control-label">大表备注</label>
                                    <div class="col-sm-5">
                                        <textarea class="form-control" name="remark_big" id="remark_big"></textarea>
                                    </div>
                                </div>
                            </form>
                        </div>

                    </div>


                    <div class="ibox float-e-margins">
                        <div class="ibox-title">
                            <h5>应收费用</h5>
                        </div>
                        <div class="ibox-content">
                            <form method="get" class="form-horizontal">
                                <div class="form-group">
                                    <label class="col-sm-1 control-label">运费</label>
                                    <div class="col-sm-1">
                                        <input type="text" class="form-control" name="money_1_1" id="money_1_1" />
                                    </div>

                                    <label class="col-sm-1 control-label">待时费</label>
                                    <div class="col-sm-1">
                                        <input type="text" class="form-control" name="money_1_2" id="money_1_2" />
                                    </div>

                                    <label class="col-sm-1 control-label">预提费</label>
                                    <div class="col-sm-1">
                                        <input type="text" class="form-control" name="money_1_3" id="money_1_3" />
                                    </div>

                                    <label class="col-sm-1 control-label">洋山费</label>
                                    <div class="col-sm-1">
                                        <input type="text" class="form-control" name="money_1_4" id="money_1_4" />
                                    </div>

                                    <label class="col-sm-1 control-label">落/还厢费</label>
                                    <div class="col-sm-1">
                                        <input type="text" class="form-control" name="money_1_5" id="money_1_5" />
                                    </div>

                                    <label class="col-sm-1 control-label">打/改单费</label>
                                    <div class="col-sm-1">
                                        <input type="text" class="form-control" name="money_1_6" id="money_1_6" />
                                    </div>
                                </div>

                                <div class="form-group">
                                    <label class="col-sm-1 control-label">理货费</label>
                                    <div class="col-sm-1">
                                        <input type="text" class="form-control" name="money_1_7" id="money_1_7" />
                                    </div>

                                    <label class="col-sm-1 control-label">超重费</label>
                                    <div class="col-sm-1">
                                        <input type="text" class="form-control" name="money_1_8" id="money_1_8" />
                                    </div>

                                    <label class="col-sm-1 control-label">疏港费</label>
                                    <div class="col-sm-1">
                                        <input type="text" class="form-control" name="money_1_9" id="money_1_9" />
                                    </div>

                                    <label class="col-sm-1 control-label">港杂费</label>
                                    <div class="col-sm-1">
                                        <input type="text" class="form-control" name="money_1_10" id="money_1_10" />
                                    </div>

                                    <label class="col-sm-1 control-label">坏/污厢费</label>
                                    <div class="col-sm-1">
                                        <input type="text" class="form-control" name="money_1_11" id="money_1_11" />
                                    </div>

                                    <label class="col-sm-1 control-label">其他费</label>
                                    <div class="col-sm-1">
                                        <input type="text" class="form-control" name="money_1_12" id="money_1_12" />
                                    </div>
                                </div>

                                <div class="form-group">
                                    <label class="col-sm-1 control-label">应收备注</label>
                                    <div class="col-sm-5" style="width:440px;margin-left:-15px;">
                                        <input type="text" class="form-control" name="remark_1" id="remark_1" />
                                    </div>

                                    <label class="col-sm-1 control-label" style="margin-left:-15px;">代垫费</label>
                                    <div class="col-sm-1">
                                        <input type="text" class="form-control" name="money_1_13" id="money_1_13" />
                                    </div>

                                    <label class="col-sm-1 control-label">税金</label>
                                    <div class="col-sm-1">
                                        <input type="text" class="form-control" name="money_1_14" id="money_1_14" />
                                    </div>

                                    <label class="col-sm-1 control-label">代收费</label>
                                    <div class="col-sm-1">
                                        <input type="text" class="form-control" name="money_1_15" id="money_1_15" />
                                    </div>
                                </div>
                            </form>
                        </div>
                    </div>


                    <div class="ibox float-e-margins">
                        <div class="ibox-title">
                            <h5>应付费用</h5>
                        </div>
                        <div class="ibox-content">
                            <form method="get" class="form-horizontal">
                                <div class="form-group">
                                    <label class="col-sm-1 control-label">运费</label>
                                    <div class="col-sm-1">
                                        <input type="text" class="form-control" name="money_2_1" id="money_2_1" />
                                    </div>

                                    <label class="col-sm-1 control-label">待时费</label>
                                    <div class="col-sm-1">
                                        <input type="text" class="form-control" name="money_2_2" id="money_2_2" />
                                    </div>

                                    <label class="col-sm-1 control-label">预提费</label>
                                    <div class="col-sm-1">
                                        <input type="text" class="form-control" name="money_2_3" id="money_2_3" />
                                    </div>

                                    <label class="col-sm-1 control-label">洋山费</label>
                                    <div class="col-sm-1">
                                        <input type="text" class="form-control" name="money_2_4" id="money_2_4" />
                                    </div>

                                    <label class="col-sm-1 control-label">落/还厢费</label>
                                    <div class="col-sm-1">
                                        <input type="text" class="form-control" name="money_2_5" id="money_2_5" />
                                    </div>

                                    <label class="col-sm-1 control-label">打/改单费</label>
                                    <div class="col-sm-1">
                                        <input type="text" class="form-control" name="money_2_6" id="money_2_6" />
                                    </div>
                                </div>

                                <div class="form-group">
                                    <label class="col-sm-1 control-label">理货费</label>
                                    <div class="col-sm-1">
                                        <input type="text" class="form-control" name="money_2_7" id="money_2_7" />
                                    </div>

                                    <label class="col-sm-1 control-label">超重费</label>
                                    <div class="col-sm-1">
                                        <input type="text" class="form-control" name="money_2_8" id="money_2_8" />
                                    </div>

                                    <label class="col-sm-1 control-label">疏港费</label>
                                    <div class="col-sm-1">
                                        <input type="text" class="form-control" name="money_2_9" id="money_2_9" />
                                    </div>

                                    <label class="col-sm-1 control-label">港杂费</label>
                                    <div class="col-sm-1">
                                        <input type="text" class="form-control" name="money_2_10" id="money_2_10" />
                                    </div>

                                    <label class="col-sm-1 control-label">坏/污厢费</label>
                                    <div class="col-sm-1">
                                        <input type="text" class="form-control" name="money_2_11" id="money_2_11" />
                                    </div>

                                    <label class="col-sm-1 control-label">其他费</label>
                                    <div class="col-sm-1">
                                        <input type="text" class="form-control" name="money_2_12" id="money_2_12" />
                                    </div>
                                </div>

                                <div class="form-group">
                                    <label class="col-sm-1 control-label">应付备注</label>
                                    <div class="col-sm-5" style="margin-left:-15px;width:440px;">
                                        <input type="text" class="form-control" name="remark_2" id="remark_2" />
                                    </div>

                                    <label class="col-sm-1 control-label" style="margin-left:-15px;">代垫费</label>
                                    <div class="col-sm-1">
                                        <input type="text" class="form-control" name="money_2_13" id="money_2_13" />
                                    </div>

                                    <label class="col-sm-1 control-label">税金</label>
                                    <div class="col-sm-1">
                                        <input type="text" class="form-control" name="money_2_14" id="money_2_14" />
                                    </div>

                                    <label class="col-sm-1 control-label">预付费</label>
                                    <div class="col-sm-1">
                                        <input type="text" class="form-control" name="money_2_15" id="money_2_15" />
                                    </div>
                                </div>
                            </form>
                        </div>
                    </div>


                    <div class="ibox float-e-margins">
                        <div class="ibox-title">
                            <h5>车辆费用</h5>
                        </div>
                        <div class="ibox-content">
                            <form method="get" class="form-horizontal">
                                <div class="form-group">
                                    <label class="col-sm-1 control-label">出车费</label>
                                    <div class="col-sm-1">
                                        <input type="text" class="form-control" name="money_3_1" id="money_3_1" />
                                    </div>

                                    <label class="col-sm-1 control-label">提箱费</label>
                                    <div class="col-sm-1">
                                        <input type="text" class="form-control" name="money_3_2" id="money_3_2" />
                                    </div>

                                    <label class="col-sm-1 control-label">调箱门</label>
                                    <div class="col-sm-1">
                                        <input type="text" class="form-control" name="money_3_3" id="money_3_3" />
                                    </div>

                                    <label class="col-sm-1 control-label">路桥费</label>
                                    <div class="col-sm-1">
                                        <input type="text" class="form-control" name="money_3_4" id="money_3_4" />
                                    </div>

                                    <label class="col-sm-1 control-label">邮费</label>
                                    <div class="col-sm-1">
                                        <input type="text" class="form-control" name="money_3_5" id="money_3_5" />
                                    </div>

                                    <label class="col-sm-1 control-label">待时费</label>
                                    <div class="col-sm-1">
                                        <input type="text" class="form-control" name="money_3_6" id="money_3_6" />
                                    </div>
                                </div>

                                <div class="form-group">
                                    <label class="col-sm-1 control-label">轮胎费</label>
                                    <div class="col-sm-1">
                                        <input type="text" class="form-control" name="money_3_7" id="money_3_7" />
                                    </div>

                                    <label class="col-sm-1 control-label">修理费</label>
                                    <div class="col-sm-1">
                                        <input type="text" class="form-control" name="money_3_8" id="money_3_8" />
                                    </div>

                                    <label class="col-sm-1 control-label">其他费</label>
                                    <div class="col-sm-1">
                                        <input type="text" class="form-control" name="money_3_9" id="money_3_9" />
                                    </div>

                                    <label class="col-sm-1 control-label">罚款</label>
                                    <div class="col-sm-1">
                                        <input type="text" class="form-control" name="money_3_10" id="money_3_10" />
                                    </div>

                                    <label class="col-sm-1 control-label">路桥费</label>
                                    <div class="col-sm-1">
                                        <input type="text" class="form-control" name="money_3_11" id="money_3_11" />
                                    </div>

                                    <label class="col-sm-1 control-label">进港费</label>
                                    <div class="col-sm-1">
                                        <input type="text" class="form-control" name="money_3_12" id="money_3_12" />
                                    </div>
                                </div>

                                <div class="form-group">
                                    <label class="col-sm-1 control-label">车辆备注</label>
                                    <div class="col-sm-5" style="margin-left:-15px;width:440px;">
                                        <input type="text" class="form-control" name="remark_3" id="remark_3" />
                                    </div>

                                    <label class="col-sm-1 control-label" style="margin-left:-15px;">代支费</label>
                                    <div class="col-sm-1">
                                        <input type="text" class="form-control" name="money_3_13" id="money_3_13" />
                                    </div>

                                    <label class="col-sm-1 control-label">垫付费</label>
                                    <div class="col-sm-1">
                                        <input type="text" class="form-control" name="money_3_14" id="money_3_14" />
                                    </div>
                                </div>
                            </form>
                        </div>
                    </div>
                    <div class="form-group">
                        <div style="text-align: right;" class="col-sm-12">
                            <button style="width: 80px;" class="btn btn-sm btn-info" type="button" id="submit" >保&nbsp;存</button>
                        </div>
                    </div>

                </div>
            </div>
        </div>

        <div class="outside_pull"></div>
    </body>
</html>
